home *** CD-ROM | disk | FTP | other *** search
- on enterFrame
- global firstTime, goOn, gPlaySound, goQuick, audioPath, notOn
- if gPlaySound then
- frameNum = the frame
- soundFile = getAudioFile(frameNum)
- sound playFile 1, audioPath & soundFile & ".AIF"
- gPlaySound = 0
- end if
- end
-
- on exitFrame
- global firstTime, goOn, notClicked, gMenuButton, gMenuExit, gPlaySound, notOn, gTourForwardArrow, gTourBackArrow, gTiming
- repeat with rc in [gMenuButton, gMenuExit, gTourForwardArrow, gTourBackArrow]
- doRollover(rc)
- end repeat
- if soundBusy(1) then
- go(the frame)
- else
- gTiming = 1
- goOn = 0
- firstTime = 1
- gPlaySound = 1
- notOn = 1
- go(the frame + 1)
- end if
- end
-